<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:form>
        ------------------------------------------
        <br/>
        Below for Sales People
        <br/>
        ------------------------------------------
        <br/><b>Product Price</b>
        <p/>
        This is a new line.
        For adding an entry in IndicativeProductPrice table[BY SALES MANAGER] //done
        <h:commandButton action="addIndicativeProductPrice.xhtml" value="Add Indicative Product Price" actionListener="#{quotationBean.retrieveAllProductsList}"/>
        <br/><br/>
        For editing an entry in IndicativeProductPrice table.[BY SALES MANAGER] //done
        <h:commandButton action="chooseIndicativeProductPriceToEdit.xhtml" value="Edit  Indicative Product Price" actionListener="#{quotationBean.retrieveAllProductsList}"/>
        <br/><br/>
        For deleting an entry in IndicativeProductPrice table.[BY SALES MANAGER] //done
        <h:commandButton action="deleteIndicativeProductPrice.xhtml" value="Delete Indicative Product Price" actionListener="#{quotationBean.retrieveAllProductsList}"/>

        <br/><b>Sales Inquiry</b>
        <br/><br/>
        For adding sales inquiry(input from client offline) [BY SALES STAFF AND MANAGER] //done
        <h:commandButton action="chooseClientForSalesInquiry.xhtml" value="Add Sales Inquiry" actionListener="#{salesInquiryBean.retrieveClients}"/>
        <br/><br/>
        View a sales inquiry  in detail [BY SALES MANAGER AND STAFF] //done
        <h:commandButton action="chooseSalesInquiryToView.xhtml" value="View A Sales Inquiry" actionListener="#{salesInquiryBean.getSalesInquiryList}"/>
        <br/><br/>
        For displaying sales inquiry with all details and in all states[BY SALES MANAGER???] //done
        <h:commandButton action="displaySalesInquiryList.xhtml" value="View All Sales Inquiry" actionListener="#{salesInquiryBean.getSalesInquiryList}"/>
        <br/><br/>
        Edit sales inquiry status [BY SALES MANAGER AND STAFF] //done
        <h:commandButton action="chooseSalesInquiryToEdit.xhtml" value="Edit Sales Inquiry Status" actionListener="#{salesInquiryBean.getSalesInquiryList}"/>

        <br/><b>Quotation</b>
        <br/><br/>
        For creating a quotation directly (input from client offline)[BY SALES STAFF AND MANAGER] //done
        <h:commandButton action="chooseClientForQuotation.xhtml" value="Create a new Quotation" actionListener="#{quotationBean.retrieveClients}"/>
        <br/><br/>
        View a quotation in detail [BY SALES MANAGER AND STAFF] //done
        <h:commandButton action="chooseQuotationToView.xhtml" value="View A Quotation" actionListener="#{quotationBean.getQuotationList}"/>
        <br/><br/>
        For displaying quotation with all details and in all states[BY SALES MANAGER???] //done
        <h:commandButton action="displayQuotationList.xhtml" value="View All Quotations" actionListener="#{quotationBean.getQuotationList}"/>
        <br/><br/>
        For editing quotation [I DUNNO FOR WHO TO USE, SALES MANAGER???] 
        <h:commandButton action="chooseQuotationToEdit.xhtml" value="Edit Quotation" actionListener="#{quotationBean.getQuotationList}"/>
        <br/><br/>
        For displaying quotations that lack validity days [BY SALES STAFF AND MANAGER]
        <h:commandButton action="displayNeedValidityDaysQuotations.xhtml" value="Display Quotations without Validity Days" actionListener="#{quotationBean.getNeedValidityDaysQuotationList}"/>
        <br/><br/>
        For inputting validity days for quotations that do not have them [BY SALE STAFF AND MANAGER]
        <h:commandButton action="inputDaysValid.xhtml" value="Input Validity Days for Quotations" actionListener="#{quotationBean.getNeedValidityDaysQuotationList}"/>

        <br/><b>Purchase Order</b>
        <br/><br/>
        create a purchase order (by converting from quotation) [BY STAFF MANAGER AND STAFF]
        <h:commandButton action="chooseQuotationForPurchaseOrder.xhtml" value="Create a purchase order" actionListener="#{purchaseOrderBean.getCompletedQuotationList}"/>
        <br/><br/>
        View a specific purchase order based on its Id
        <h:commandButton action="choosePurchaseOrderToView.xhtml" value="View A Purchase Order" actionListener="#{purchaseOrderBean.retrievePurchaseOrderList}"/>
        <br/><br/>
        Choose Purchase to convert to Sales Order
        <h:commandButton action="choosePurchaseToConvert.xhtml" value="Choose Purchase to convert to Sales Order" actionListener="#{salesOrderBean.retrievePurchaseOrderList}"/>Not tested
        <br/><br/>
        View All Purchase Orders
        <h:commandButton action="viewPurchaseOrder.xhtml" value="View All Purchase Orders" actionListener="#{purchaseOrderBean.viewAllPurchaseOrder}"/>


        <br/><br/>
        ------------------------------------------
        <br/>
        Below for Production People
        <br/>
        ------------------------------------------
        <br/><br/>
        For displaying quotations that lack leadtime [BY PRODUCTION STAFF AND MANAGER]
        <h:commandButton action="displayNeedLeadTimeQuotation.xhtml" value="Display Quotations without leadtime" actionListener="#{quotationBean.getNeedLeadTimeQuotationList}"/>
        <br/><br/>
        For inputting lead time for quotations that do not have them [BY PRODUCTION STAFF AND MANAGER]
        <h:commandButton action="chooseQuotationToInputLeadTime.xhtml" value="Input Lead Time for Quotations" actionListener="#{quotationBean.getNeedLeadTimeQuotationList}"/>
        <br/><br/>
        ------------------------------------------
        <br/>
        Below for Customer
        <br/>
        ------------------------------------------
        <br/>
        Ask For a quotation
        <h:commandButton action="addQuotationItem.xhtml" value="Ask for a Quotation" actionListener="#{quotationBean.clientAskForQuotation}"/>
        <br/><br/>
        Ask For a sales inquiry
        <h:commandButton action="addSalesInquiryItem.xhtml" value="Ask for a Sales Inquiry" actionListener="#{salesInquiryBean.clientAskForSalesInquiry}"/>
        <br/><br/>
        View a quotation in detail [BY CUSTOMER]
        <h:commandButton action="chooseQuotationToView.xhtml" value="View A Quotation" actionListener="#{quotationBean.getClientQuotationList}"/>
        <br/><br/>
        View a sales inquiry  in detail [BY CUSTOMER] 
        <h:commandButton action="chooseSalesInquiryToView.xhtml" value="View A Sales Inquiry" actionListener="#{salesInquiryBean.getClientSalesInquiryList}"/>
        <br/><br/>
        Choose a Quotation to convert to Purchase [BY CUSTOMER] 
        <h:commandButton action="chooseQuotationForPurchaseOrder" value="Choose Quotation to convert to Purchase Order" actionListener="#{purchaseOrderBean.getClientCompletedQuotationList}"/>
        <br/><br/>
        View a specific purchase order based on its Id
        <h:commandButton action="choosePurchaseOrderToView.xhtml" value="View A Purchase Order" actionListener="#{purchaseOrderBean.retrievePurchaseOrderList}"/>
        <br/><br/>
        View a purchase order in detail [BY CUSTOMER] 
        <h:commandButton action="choosePurchaseOrderToView.xhtml" value="View A Purchase Order" actionListener="#{purchaseOrderBean.getClientPurchaseOrderList}"/>
<br/><br/>
        View a sales order in detail [BY CUSTOMER]
        <h:commandButton action="chooseSalesOrderToView.xhtml" value="View A Sales Order" actionListener="#{salesOrderBean.getClientSalesOrderList}"/>

        <br/><br/>
        ------------------------------------------
        <br/>
        Supposedly done auto by System
        <br/>
        ------------------------------------------
        <br/><br/>
        <h:commandButton action="updateOrderModifiedBy.xhtml" value="Update last user of sales order" />
        <br/><br/>
        <h:commandButton action="updateOrderStatus.xhtml" value="Change the status of sales order" />

        <!-- <h:commandButton action="./testin/zz.xhtml" value="Tetsiung."/> -->
    </h:form>
</ui:composition>